<?php

include 'D:/dingjiangbbs/config/common.php';

//根据调试状态设置错误报告
if (IS_DEBUG) {
	error_reporting(E_ALL);
} else {
	error_reporting(0);
}

//设置默认时区
date_default_timezone_set(TIMEZONE);
/*
//判断是否安装
if (!file_exists('install.lock')) {
	header('location:install/index.php');
}
*/
//相关文件加载
include DOC_ROOT.'config/database.php';
include DOC_ROOT.'config/home.php';
include DOC_ROOT.'helper/water.php';
include DOC_ROOT.'helper/mysql.php';
include DOC_ROOT.'helper/tpl.php';
include DOC_ROOT.'helper/upload.php';
include DOC_ROOT.'helper/code.php';

//连接数据库

$link = connect(DB_HOST,DB_USER,DB_PWD,DB_CHARSET,DB_NAME);
if (!$link) {
	exit('数据库连接失败');
}

//var_dump(DB_TABLE_USER,DOC_ROOT);



//待处理：IP是否禁用，网站是否关闭


